All Questions
Tagged with custom-taxonomytags
112 questions
0votes
1answer
973views
ACF - Tags not showing up in Custom Post Types
I have a tags taxonomy and then I've added it to my CPT, however it does not give me the option to add tags to my CPT now. How do I get it to do that?
2votes
2answers
80views
Search for portfolio tags & mixing portfoliotags and post tags
I have been trying to filter my search result without success. Here is my function in functions.php I want to retrieve only post and portfolio posts (no pages). Below is the code I found on your ...
0votes
0answers
38views
Get all taxonomy terms for attachment, get_terms does not work for me [duplicate]
I have created tags and category for my media attachments with a function like this register_taxonomy( 'gallery-tags', 'attachment', array( 'labels' => array( 'name' ...
0votes
1answer
98views
Set two terms for a post when they differ only by an accent
I face the following situation: after manually adding (in the backend) the terms with names (not slugs) Mânie and Manie, that differs only in an accent/diacritic (they are totally different words with ...
0votes
1answer
45views
Search CPT by tag ids
I need to search custom post type by tagids. I have created a post type that is "gampu". In this post type i have register 5 tags taxonomy like 'fitting', 'adapter', 'type', 'volume' and '...
0votes
1answer
122views
How to add Text before my Custom Term and hide it when empty
This is my code: <?php $terms = get_the_terms( $post->ID , 'this_is_custom' ); $links = []; foreach ( $terms as $term ) { $term_link = get_term_link( $term, '...
0votes
1answer
1kviews
The Difference Between Categories and Tags and Taxonomies and Terms
I've got a custom post type 'articles' and I've added a custom taxonomy 'articles_categories' which has its own terms. I was under the impression you can't have categories and tags on custom post ...
0votes
1answer
77views
How to set "section categories"?
I've made a custom post type "Artwork" with CPT UI. In the settings of my CPT, I enabled access to these taxonomies "Categories" and "Section Categories". When I view my post list, I not only see a ...
0votes
1answer
102views
Tags being removed upon updates to related posts: ACF/Genesis/WP5.4.1
I have a custom post type for 'news' which contains a 'news-tags' taxonomy. And another post type 'practices' which are tagged in news items. When I update any post of the 'practices' type, all tags ...
0votes
1answer
1kviews
CPT tags not showing when editing post
Since Gutenberg I've used the plugin "Classic Editor" for one of my websites until I have time to make the necessary adjustments to fully work with the new Gutenberg look. I'm now starting to look at ...
0votes
1answer
394views
Echo text using is_tag
I've been trying to echo some text to all single pages that are part of tag_ID 129 This is the code that I used <?php if ( is_tag( '129' )){ echo '<p> test 2</p>'; } ?> so ...
0votes
2answers
669views
Get tags name under custom taxonomy in wordpress
I want to get/show only available tags under custom taxonomy. Here's my code; $tax = $wp_query->get_queried_object(); // print current taxonomy $args = array( 'post_type' => 'types', // ...
2votes
1answer
299views
associate custom post type with tags with specific pages
I have various products (custom post type) which already have categories but I have now I have added this line to be able to add tags to the products. 'taxonomies' => array('post_tag') So, I ...
1vote
1answer
352views
Sorting Tags by Slug Value
In wordpress the tags are display alphabetically by default. How can I sort the tags by slug value and keep that order in the front end?
0votes
2answers
3kviews
How to search from specific post type with tags?
UPDATED: I have a Custom Post Type Commercials. This post type has a title and a video id. I want to search from this specific post type. Right now it returns result which matches the titles only, I ...